package com.loan.service;

import com.loan.entity.CategoryChannel;
import com.loan.repository.CategoryChannelRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by huxudong on 17/6/29.
 */
@Service
public class CategoryChannelService {

    @Autowired
    private CategoryChannelRepository categoryChannelRepository;


    public List<CategoryChannel> findByCategoryId(Long categoryId){
        return categoryChannelRepository.findByCategory(categoryId);
    }
}



